<?php

include "funct.php";

if (!isset($_GET["id"], $_SESSION["user"]))
	iesire();
clean($_GET["id"]);

$room = room($_GET["id"]);
if ($room["user"] != $_SESSION["user"] && $room["user2"] != $_SESSION["user"])
	iesire();
out_room($room["id"]);
location("battles");
?>
